package com.thoughtworks;

import java.util.Scanner;

/**
 * Created by bhagyas on 7/9/14.
 */
public class bookcheckout extends Main {
    public static int checkout(book books[],String name) {
        int flag = 0;
        for (int i = 0; i < books.length; i++) {
            if (name.equals(books[i].bookname)) {


                checkedoutbooks[++k] = name;
                checkout = 1;
                flag = 1;
            }

        }


return flag;

    }
}